Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always create a new database with zdbc * zdb.c (zdb_open): Always create a new database
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f717a40f6d81f93bc4301a923c41a89deac94d67
User & Date: brandon 2016-05-26 20:12:33
Context
2016-05-26
21:16
add support for new database-opening flags check-in: 70910f4055 user: brandon tags: trunk
20:12
Always create a new database with zdbc * zdb.c (zdb_open): Always create a new database check-in: f717a40f6d user: brandon tags: trunk
20:12
Always create a new database with zdbc check-in: 9d15f48aab user: brandon tags: trunk
Changes

Changes to src/zdb.c.

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
    case ZDB_READER:
      res = kcdbopen (database, dbfile, KCOREADER);
      break;
    case ZDB_WRITER:
      res = kcdbopen (database, dbfile, KCOWRITER);
      break;
    case ZDB_CREATOR:
      res = kcdbopen (database, dbfile, KCOWRITER | KCOCREATE);
      break;
    }
  if (!res)
    error (EXIT_FAILURE, errno,
           "Failed to open database %s", dbfile);
  db = database;
#else







|







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
    case ZDB_READER:
      res = kcdbopen (database, dbfile, KCOREADER);
      break;
    case ZDB_WRITER:
      res = kcdbopen (database, dbfile, KCOWRITER);
      break;
    case ZDB_CREATOR:
      res = kcdbopen (database, dbfile, KCOCREATE);
      break;
    }
  if (!res)
    error (EXIT_FAILURE, errno,
           "Failed to open database %s", dbfile);
  db = database;
#else