]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
logger: identify fields with int constants instead of strings
authorSage Weil <sage@newdream.net>
Thu, 26 Feb 2009 19:25:37 +0000 (11:25 -0800)
committerSage Weil <sage@newdream.net>
Thu, 26 Feb 2009 19:25:37 +0000 (11:25 -0800)
commit61dd86d97e0883d1bea95ede26d2be8de80e4a2b
tree12be55615f365659d7862e7a0b93468c2e1649a9
parent9156a56bc59e6d827722dde7c7a4ecae59d13dd0
logger: identify fields with int constants instead of strings

This avoids the crufty hashes and so forth.  The only downside is that
_all_ fields must be predeclared.  That's probably a good thing anyway.

Logger will assert if the key is invalid or the name hasn't been
registered.  Hopefully I haven't missed any.
21 files changed:
src/client/Client.cc
src/client/Client.h
src/client/SyntheticClient.cc
src/common/LogType.h
src/common/Logger.cc
src/common/Logger.h
src/dumpjournal.cc
src/mds/CDir.cc
src/mds/MDCache.cc
src/mds/MDLog.cc
src/mds/MDLog.h
src/mds/MDS.cc
src/mds/MDS.h
src/mds/Migrator.cc
src/mds/Server.cc
src/mds/Server.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/ReplicatedPG.cc
src/osdc/Journaler.cc
src/osdc/Journaler.h