return mdb_strerror(rc);
}
-MDBDbi::MDBDbi(MDB_env* /* env */, MDB_txn* txn, const string_view dbname, int flags)
+MDBDbi::MDBDbi(MDB_env* env, MDB_txn* txn, const string_view dbname, int flags)
{
// A transaction that uses this function must finish (either commit or abort) before any other transaction in the process may use this function.
/** nop index, so we can fill our N indexes, even if you don't use them all */
struct nullindex_t
{
- template <typename Class>
- void put(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */, int /* flags */ = 0)
+ template<typename Class>
+ void put(MDBRWTransaction& txn, const Class& t, uint32_t id, int flags=0)
{}
-
- template <typename Class>
- void del(MDBRWTransaction& /* txn */, const Class& /* t */, uint32_t /* id */)
+ template<typename Class>
+ void del(MDBRWTransaction& txn, const Class& t, uint32_t id)
{}
- void openDB(std::shared_ptr<MDBEnv>& /* env */, string_view /* str */, int /* flags */)
- {}
+ void openDB(std::shared_ptr<MDBEnv>& env, string_view str, int flags)
+ {
+ }
typedef uint32_t type; // dummy
};
d_cursor.del();
}
- bool operator!=(const eiter_t& /* rhs */) const
+ bool operator!=(const eiter_t& rhs) const
{
return !d_end;
}
- bool operator==(const eiter_t& /* rhs */) const
+ bool operator==(const eiter_t& rhs) const
{
return d_end;
}