message: Changing xxx_record methods to return previous records size
diff: @@ -34,11 +34,12 @@ public:
  const auto* obj = db.find<ObjectType, by_scope_primary>(tuple);
  if( obj ) {
  + const int32_t previous_size = obj->value.size();
  //wlog( "modify" );
  mutable_db.modify( *obj, [&]( auto& o ) {
  o.value.assign(value, valuelen);
  });
  - return 0;
  + return previous_size;
  } else {
  //wlog( "new" );
  mutable_db.create<ObjectType>( [&](auto& o) {
  @@ -48,7 +49,7 @@ public:
  key_helper<ObjectType>::set(o, keys);
  o.value.insert( 0, value, valuelen );
  });
  - return 1;
  + return -1;
  }
  }
  @@ -60,9 +61,11 @@ public:
  const auto* obj = db.find<ObjectType, by_scope_primary>(tuple);
  if( !obj ) {
  - return 0;
  + return -1;
  }
  + const int32_t previous_size = obj->value.size();
  +
  mutable_db.modify( *obj, [&]( auto& o ) {
  if( valuelen > o.value.size() ) {
  o.value.resize(valuelen);
  @@ -70,7 +73,7 @@ public:
  memcpy(o.value.data(), value, valuelen);
  });
  - return 1;
  + return previous_size;
  }
  template <typename ObjectType>
  @@ -80,10 +83,11 @@ public:
  auto tuple = find_tuple<ObjectType>::get(scope, code, table, keys);
  const auto* obj = db.find<ObjectType, by_scope_primary>(tuple);
  if( obj ) {
  + const int32_t previous_size = obj->value.size();
  mutable_db.remove( *obj );
  - return 1;
  + return previous_size;
  }
  - return 0;
  + return -1;
  }
  template <typename IndexType, typename Scope>
  