Log Message: |
Use svn_stomic__init_once() to initialize the sqlite library, to avoid any
race conditions.
Suggested by: rhuijben
(Also mentioned in the comments.)
* subversion/libsvn_subr/sqlite.c
(sqlite_init_state): New.
(init_sqlite): Remove internal already-initialized checking.
(svn_sqlite__get_schema_version, svn_sqlite__open): Update callers to use
svn_atomic__init_once().
|