diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-09-04 11:23:27 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-09-04 11:23:27 -0400 |
commit | 885dc54d9a61199c08812b415a311c844d15af10 (patch) | |
tree | 863e1854b56e652eb6e17369f07d741a66b45fc8 /ext/test | |
parent | 990c54c18fb7ac60cd708c8a3061147db2e3a744 (diff) | |
download | mongo-885dc54d9a61199c08812b415a311c844d15af10.tar.gz |
Only open the transaction store once per database, not once per KVS store.
Diffstat (limited to 'ext/test')
-rw-r--r-- | ext/test/memrata/memrata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/test/memrata/memrata.c b/ext/test/memrata/memrata.c index 292f04c8f46..dff205d066d 100644 --- a/ext/test/memrata/memrata.c +++ b/ext/test/memrata/memrata.c @@ -3220,10 +3220,6 @@ kvs_source_recover(WT_DATA_SOURCE *wtds, KVS_SOURCE *ks, WT_CONFIG_ARG *config) memset(&names, 0, sizeof(names)); - /* Find and open the database transaction store. */ - if ((ret = kvs_source_open_txn(ds)) != 0) - return (ret); - /* Get a list of the cache/primary object pairs in the KVS source. */ if ((ret = kvs_namespaces( ks->kvs_device, kvs_namespace_list, &names)) != 0) @@ -3377,6 +3373,10 @@ wiredtiger_extension_init(WT_CONNECTION *connection, WT_CONFIG_ARG *config) "WT_EXTENSION_API.config_scan_end: config: %s", wtext->strerror(ret)); + /* Find and open the database transaction store. */ + if ((ret = kvs_source_open_txn(ds)) != 0) + return (ret); + /* Recover each KVS source. */ for (ks = ds->kvs_head; ks != NULL; ks = ks->next) if ((ret = kvs_source_recover(&ds->wtds, ks, config)) != 0) |