/ Check-in [77ac231c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:77ac231c0e21c09c0b612a4e72bcc863f2c95fd3
User & Date: drh 2006-01-07 04:06:55
Context
2006-01-07
13:21
In shared-cache mode, lock all required tables before beginning to execute the body of the statement program. (CVS 2881) check-in: 23b587b0 user: danielk1977 tags: trunk
04:06
Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880) check-in: 77ac231c user: drh tags: trunk
2006-01-06
22:11
Fix bugs in test scripts that came of of sse testing. (CVS 2879) check-in: 22bf1a2f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

1674
1675
1676
1677
1678
1679
1680

1681
1682
1683
1684
1685
1686
1687

  if( !keyInit ){
    sqlite3OsEnterMutex();
    if( !keyInit ){
      int rc;
      rc = pthread_key_create(&key, deleteTsd);
      if( rc ){

        return 0;
      }
      keyInit = 1;
    }
    sqlite3OsLeaveMutex();
  }








>







1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688

  if( !keyInit ){
    sqlite3OsEnterMutex();
    if( !keyInit ){
      int rc;
      rc = pthread_key_create(&key, deleteTsd);
      if( rc ){
        sqlite3OsLeaveMutex();
        return 0;
      }
      keyInit = 1;
    }
    sqlite3OsLeaveMutex();
  }