This commit is contained in:
Hongze Cheng 2022-02-19 13:09:14 +00:00
parent 9e34770df9
commit e5786ab798
2 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@ int tdbEnvCommit(TENV *pEnv);
int tdbCreate(TDB **ppDb);
int tdbOpen(TDB *pDb, const char *fname, const char *dbname, TENV *pEnv);
int tdbClose(TDB *pDb);
int tdbDrop(TDB *pDb);
int tdbSetKeyLen(TDB *pDb, int klen);
int tdbSetValLen(TDB *pDb, int vlen);

View File

@ -132,6 +132,11 @@ int tdbClose(TDB *pDb) {
return tdbDestroy(pDb);
}
int tdbDrop(TDB *pDb) {
// TODO
return 0;
}
int tdbSetKeyLen(TDB *pDb, int klen) {
// TODO: check `klen`
pDb->klen = klen;