Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug 834995 - Fix race condition in mozStorageConnection.cpp. r=mak77,…

… a=akeybl
  • Loading branch information...
commit 07d5d11a87a08c0f84c60182fbd892130977e553 1 parent 98cdbfc
Gregor Wagner authored January 26, 2013

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  storage/src/mozStorageConnection.cpp
1  storage/src/mozStorageConnection.cpp
@@ -1047,6 +1047,7 @@ Connection::Clone(bool aReadOnly,
1047 1047
   }
1048 1048
 
1049 1049
   // Copy any functions that have been added to this connection.
  1050
+  SQLiteMutexAutoLock lockedScope(sharedDBMutex);
1050 1051
   (void)mFunctions.EnumerateRead(copyFunctionEnumerator, clone);
1051 1052
 
1052 1053
   NS_ADDREF(*_connection = clone);

0 notes on commit 07d5d11

Please sign in to comment.
Something went wrong with that request. Please try again.