Merge PR #55994 into main

* refs/pull/55994/head:
	cephfs_mirror, qa: fix typo in current_syncing_snap status

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
This commit is contained in:
Venky Shankar 2024-03-14 16:49:19 +05:30
commit cedca8e939
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ class TestMirroring(CephFSTestCase):
'fs', 'mirror', 'peer', 'status',
f'{fs_name}@{fs_id}', peer_uuid)
self.assertTrue('syncing' == res[dir_name]['state'])
self.assertTrue(res[dir_name]['current_sycning_snap']['name'] == snap_name)
self.assertTrue(res[dir_name]['current_syncing_snap']['name'] == snap_name)
def verify_snapshot(self, dir_name, snap_name):
snap_list = self.mount_b.ls(path=f'{dir_name}/.snap')

View File

@ -1611,7 +1611,7 @@ void PeerReplayer::peer_status(Formatter *f) {
f->dump_string("state", "idle");
} else {
f->dump_string("state", "syncing");
f->open_object_section("current_sycning_snap");
f->open_object_section("current_syncing_snap");
f->dump_unsigned("id", (*sync_stat.current_syncing_snap).first);
f->dump_string("name", (*sync_stat.current_syncing_snap).second);
f->close_section();