]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: don't carry PGLSFilter between multiple ops in MOSDOp.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 9 Aug 2019 12:19:51 +0000 (14:19 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 16 Aug 2019 14:58:23 +0000 (10:58 -0400)
commit295ce538ea49155ca57faa88872b9e897fb63114
treefb3f69636cb41999780b2b47fbcd754187286948
parent3bdf181ffe7781842e4789f537520ef5824647c3
osd: don't carry PGLSFilter between multiple ops in MOSDOp.

Currently result of executing multiple PG listing operations
in single MOSDOp – if PGLSFilter is being used – depends on
the order in the sequence. To exemplify:

  [ CEPH_OSD_OP_PGNLS, CEPH_OSD_OP_PGNLS_FILTER ]

may bring different result for CEPH_OSD_OP_PGNLS than

  [ CEPH_OSD_OP_PGNLS_FILTER, CEPH_OSD_OP_PGNLS ].

This happens because ..._PGNLS_FILTER sets up PGLSFilter which
is used also by plain ..._PGNLS.

The commit changes that. After the filter is set-up separately
for each interested operation in MOSDOp.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/osd/PrimaryLogPG.cc