In file included from ../../ext/lmdb-safe/lmdb-typed.cc:1:
../../ext/lmdb-safe/lmdb-typed.hh:656:11: warning: variable 'scanned' set but not used [-Wunused-but-set-variable]
int scanned = 0;
^
int rc = cursor.get(out, id, MDB_SET_RANGE);
- int scanned = 0;
while (rc == 0) {
- scanned++;
auto sout = out.getNoStripHeader<std::string>(); // FIXME: this (and many others) could probably be string_view
auto thiskey = getKeyFromCombinedKey(out);
auto sthiskey = thiskey.getNoStripHeader<std::string>();
rc = cursor.get(out, id, MDB_NEXT);
}
- // std::cerr<<"get_multi scanned="<<scanned<<std::endl;
if (rc != 0 && rc != MDB_NOTFOUND) {
throw std::runtime_error("error during get_multi");
}