These asserts were useful for ensuring that pool is passed
in in the correct places, but they prevent the encoder
testing from working.
Signed-off-by: Samuel Just <sam.just@inktank.com>
// handle hobject_t format change
if (struct_v < 4) {
- assert(pool != -1);
for (list<pg_log_entry_t>::iterator i = log.begin();
i != log.end();
++i) {
DECODE_FINISH(bl);
if (struct_v < 3) {
- assert(pool != -1);
// Handle hobject_t upgrade
map<hobject_t, item> tmp;
for (map<hobject_t, item>::iterator i = missing.begin();
DECODE_FINISH(bl);
if (struct_v < 2) {
- assert(pool != -1);
if (soid.pool == -1)
soid.pool = pool;
map<hobject_t, interval_set<uint64_t> > tmp;
// handle hobject_t upgrade
if (struct_v < 3) {
- assert(pool != -1);
map<hobject_t, object> tmp;
tmp.swap(objects);
for (map<hobject_t, object>::iterator i = tmp.begin();