From 95becebac4479a148693ae3eca5674e90983e9cd Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 29 Apr 2015 20:44:12 +0100 Subject: [PATCH] tools: fix tabletool reset snap SnapServer has an encode method defined that is different to encode_state, whereas in InoTable the two were synonmous. This code was working previously for inotable but not for snapserver. Signed-off-by: John Spray --- src/tools/cephfs/TableTool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/cephfs/TableTool.cc b/src/tools/cephfs/TableTool.cc index 8d257cfd55e3..8afdebe2023a 100644 --- a/src/tools/cephfs/TableTool.cc +++ b/src/tools/cephfs/TableTool.cc @@ -247,7 +247,7 @@ public: version_t version = 1; ::encode(version, new_bl); } - table_inst.encode(new_bl); + table_inst.encode_state(new_bl); // Write out new table int r = io->write_full(object_name, new_bl); -- 2.47.3