subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1558758 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Date Thu, 16 Jan 2014 11:20:27 GMT
Author: rhuijben
Date: Thu Jan 16 11:20:27 2014
New Revision: 1558758

URL: http://svn.apache.org/r1558758
Log:
* subversion/libsvn_wc/wc_db.c
  (init_db): Reorder two queries to avoid a statement reprepare in sqlite.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1558758&r1=1558757&r2=1558758&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Thu Jan 16 11:20:27 2014
@@ -1473,12 +1473,12 @@ init_db(/* output values */
   SVN_ERR(svn_sqlite__exec_statements(db, STMT_CREATE_NODES_TRIGGERS));
   SVN_ERR(svn_sqlite__exec_statements(db, STMT_CREATE_EXTERNALS));
 
+  SVN_ERR(svn_wc__db_install_schema_statistics(db, scratch_pool));
+
   /* Insert the repository. */
   SVN_ERR(create_repos_id(repos_id, repos_root_url, repos_uuid,
                           db, scratch_pool));
 
-  SVN_ERR(svn_wc__db_install_schema_statistics(db, scratch_pool));
-
   /* Insert the wcroot. */
   /* ### Right now, this just assumes wc metadata is being stored locally. */
   SVN_ERR(svn_sqlite__get_statement(&stmt, db, STMT_INSERT_WCROOT));



Mime
View raw message