]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make the directory commit priority be low(er than journal)
authorSage Weil <sage@newdream.net>
Thu, 24 Sep 2009 21:57:27 +0000 (14:57 -0700)
committerSage Weil <sage@newdream.net>
Thu, 24 Sep 2009 21:57:27 +0000 (14:57 -0700)
I'd raise the journal priority to > default, but that means touching
more Filer.h etc code.

src/mds/CDir.cc

index 5a2908c5d7b46f5696afdbb0a18c976ce7351103..2359ec812f65c73e9d560cb5f06d81ce1cc7bb88 100644 (file)
@@ -1607,6 +1607,8 @@ void CDir::_commit(version_t want)
   ceph_object_layout ol = osdmap->make_object_layout(oid,
                                                     cache->mds->mdsmap->get_metadata_pg_pool());
 
+  m.priority = CEPH_MSG_PRIO_LOW;  // set priority lower than journal!
+
   cache->mds->objecter->mutate(oid, ol, m, snapc, g_clock.now(), 0,
                               NULL, new C_Dir_Committed(this, get_version(), inode->inode.last_renamed_version) );
 }