diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-24T08·24+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-24T08·24+0000 |
commit | b75719b98457c61857689ab135559a17034dd8ec (patch) | |
tree | e1342fcccb36e5ce30a7ba9e9827224cddfbd56a /src | |
parent | 39ce70025b59a545127d1ffdefa83b7cbfcd8be1 (diff) |
* Don't sync the database on close. This was killing performance.
(Of course, the real problem is that we open the database for *every* operation; we should only open it once. And we should use transactions.)
Diffstat (limited to 'src')
-rw-r--r-- | src/db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.cc b/src/db.cc index a8741342ce92..e3a6659bb426 100644 --- a/src/db.cc +++ b/src/db.cc @@ -12,7 +12,7 @@ class Db2 : public Db { public: Db2(DbEnv *env, u_int32_t flags) : Db(env, flags) { } - ~Db2() { close(0); } + ~Db2() { close(DB_NOSYNC); } }; |