]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
config: use std::string in md_config_t
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 17:29:45 +0000 (10:29 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 30 Mar 2011 19:07:58 +0000 (12:07 -0700)
commit9cde1f44a57cd630a66e77ed3d59127d91834d09
tree345cd22aad41d4e409a0ec13215d7766f8581160
parent3c94cc20b686636ece847753919c82ffc9aade41
config: use std::string in md_config_t

Use std::string to represent md_config_t strings. This makes memory
management a lot easier and should fix some leaks. "No value" is now
represented by an empty string, whereas before some places were using
empty strings and some were using NULL.

config.cc: Fix a minor decode bug.

In pid_file.cc, copy the pid_file using snprintf, since strncpy
does not always NULL-terminate.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
27 files changed:
src/auth/KeyRing.cc
src/auth/KeyRing.h
src/cfuse.cc
src/client/Client.cc
src/client/Client.h
src/client/SyntheticClient.cc
src/cmon.cc
src/common/ClassHandler.cc
src/common/DoutStreambuf.cc
src/common/ProfLogger.cc
src/common/ceph_argparse.cc
src/common/ceph_argparse.h
src/common/common_init.cc
src/common/config.cc
src/common/config.h
src/common/pidfile.cc
src/cosd.cc
src/libceph.cc
src/mds/MDS.cc
src/mon/MonClient.cc
src/mon/MonitorStore.cc
src/mon/MonitorStore.h
src/msg/SimpleMessenger.cc
src/os/FileStore.cc
src/osd/OSD.cc
src/osd/OSD.h
src/perfglue/heap_profiler.cc