]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: add a clear_g_str_vec() function to clear g_str_vec
authorJeff Layton <jlayton@redhat.com>
Wed, 11 Oct 2017 15:16:38 +0000 (11:16 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jan 2018 23:09:07 +0000 (00:09 +0100)
commit42bc9058a77ff427dd1dc8a4ba8098c54782a918
tree7d1ed130d94cb04106132f16eeba15f64f66ec48
parent8dec6175ab1167bab01af2594ac5d687072f3af2
common: add a clear_g_str_vec() function to clear g_str_vec

Prefix str_vec and str_vec_lock with "g_" to make it clear that they are
truly global values. Add a new clear_g_str_vec function to allow it to
be explicitly cleaned out by callers that need that functionality
(mostly testcase for now).

Tracker: http://tracker.ceph.com/issues/21512
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit f72ace0a5666db49bb390ff4ec6808e6e55a779f)
src/common/ceph_argparse.cc
src/common/ceph_argparse.h
src/test/ceph_argparse.cc