summaryrefslogtreecommitdiffstats
path: root/src/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.c')
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index 1249669..b0cfc78 100644
--- a/src/context.c
+++ b/src/context.c
@@ -80,7 +80,7 @@ static DB* open_db(const char*path, int dup, int recno) {
return NULL;
}
- if (dup)
+ if (dup && !recno)
db->set_flags(db, DB_DUPSORT);
//db->set_pagesize(db, 4096*8);