If it's not, data will be appended to the end of bufferlist and difficult
to spot bugs might arise, so fail hard in that case.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
const string &key,
bufferlist *value)
{
+ assert(value && (value->length() == 0));
utime_t start = ceph_clock_now(g_ceph_context);
int r = 0;
KeyValueDB::Iterator it = get_iterator(prefix);
const string &key,
bufferlist *out)
{
+ assert(out && (out->length() == 0));
utime_t start = ceph_clock_now(g_ceph_context);
int r = 0;
KeyValueDB::Iterator it = get_iterator(prefix);
}
int get(const string& prefix, const string& key, bufferlist& bl) {
+ assert(bl.length() == 0);
return db->get(prefix, key, &bl);
}