Merge pull request #1840 from yuyuyu101/wip-8381

Fix set_alloc_hint op cause KeyValueStore crash problem

Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-05-29 12:25:50 -07:00
commit 7ac05dc0a8
2 changed files with 13 additions and 2 deletions

View File

@ -1448,7 +1448,13 @@ unsigned KeyValueStore::_do_transaction(Transaction& transaction,
break;
case Transaction::OP_SETALLOCHINT:
// TODO: can kvstore make use of the hint?
{
// TODO: can kvstore make use of the hint?
coll_t cid(i.get_cid());
ghobject_t oid = i.get_oid();
uint64_t expected_object_size = i.get_length();
uint64_t expected_write_size = i.get_length();
}
break;
default:

View File

@ -950,7 +950,12 @@ void MemStore::_do_transaction(Transaction& t)
break;
case Transaction::OP_SETALLOCHINT:
// nop
{
coll_t cid(i.get_cid());
ghobject_t oid = i.get_oid();
uint64_t expected_object_size = i.get_length();
uint64_t expected_write_size = i.get_length();
}
break;
default: