]> git.apps.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)
committerShylesh Kumar <shylesh.mohan@gmail.com>
Mon, 9 Apr 2018 09:32:14 +0000 (15:02 +0530)
commit1fa74668982bf5eaa48fe97c9afaa1dec226e2de
tree330bdb7a6a254545b27fab4f5e5f43ee91898c31
parent0499ad14f8144f109b514e10dff9b8e8fb34daf2
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