about summary refs log tree commit diff
path: root/src/db.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-24T08·24+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-24T08·24+0000
commitb75719b98457c61857689ab135559a17034dd8ec (patch)
treee1342fcccb36e5ce30a7ba9e9827224cddfbd56a /src/db.cc
parent39ce70025b59a545127d1ffdefa83b7cbfcd8be1 (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/db.cc')
-rw-r--r--src/db.cc2
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); }
 };