]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fixing CI compilation of test_transaction.cc
authorRonen Friedman <rfriedma@redhat.com>
Mon, 19 Feb 2024 13:32:34 +0000 (07:32 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 21 Feb 2024 14:07:06 +0000 (08:07 -0600)
Fixing a compilation warning in test_transaction.cc, as the CI
builds it with '-Werror'.

See https://jenkins.ceph.com/job/ceph-pull-requests/129517/

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/test/objectstore/test_transaction.cc

index 381b9df7d64201bf8306a269969480bdbbb1684c..a2113addeb95ce1e5f911880a33191fa906ca69e 100644 (file)
@@ -92,7 +92,6 @@ ObjectStore::Transaction generate_transaction()
 
   coll_t acid;
   object_t aobj("another_test_name");
-  snapid_t asnap(0);
   hobject_t ahoid(obj, "another_key", snap, 0, 0, "another_nspace");
   ghobject_t aoid(hoid);
   std::set<string> keys;
@@ -153,7 +152,6 @@ TEST(Transaction, GetNumBytes)
 
   coll_t acid;
   object_t aobj("another_test_name");
-  snapid_t asnap(0);
   hobject_t ahoid(obj, "another_key", snap, 0, 0, "another_nspace");
   ghobject_t aoid(hoid);
   std::set<string> keys;