summaryrefslogtreecommitdiff
path: root/src/scratchtool.c
Commit message (Collapse)AuthorAgeFilesLines
* scratchtool.c: cleanup rados_t on errorDanny Al-Gaaf2013-05-141-17/+20
| | | | | | | | | | Make sure rados_shutdown() get called also in error case. CID 717106 (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable "cl" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
* librados,Objecter,PG: list objects now includes the locator keySamuel Just2011-12-071-1/+1
| | | | | | | | Previously, there was no way to recover the locator key used to create and object. Now, rados_objects_list_next and ObjectIterator will return the key as well as the object name. Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
* scratchtool[pp]: fix rados_conf_set/get test of log_to_stderrSage Weil2011-10-221-1/+1
| | | | | | | | | | Fix this warning warning: scratchtool.c:142: comparison with string literal results in unspecified behavior and flips the logic. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
* config: separate --log-to-stderr and --err-to-stderrSage Weil2011-10-211-2/+2
| | | | | | | Instead of having magic values (1 == errors only to stderr, 2 = everything), have two booleans. Signed-off-by: Sage Weil <sage@newdream.net>
* scratchtool: not a test suiteYehuda Sadeh2011-08-191-0/+309