diff options
| author | Alan Conway <aconway@apache.org> | 2010-01-06 20:44:54 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-01-06 20:44:54 +0000 |
| commit | ff2ba7d4c6f6465e5f921606dac88e0a42672750 (patch) | |
| tree | 1027f68e2a2d1a16163ba45e752134307fa90835 /cpp/src/qpid/cluster/StoreStatus.cpp | |
| parent | d7180e664e2a33822cb91e09cb32db1fc2071694 (diff) | |
| download | qpid-python-ff2ba7d4c6f6465e5f921606dac88e0a42672750.tar.gz | |
Make cluster::StoreStatus::load/save no-ops if broker has no data-dir.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@896662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/StoreStatus.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/StoreStatus.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/StoreStatus.cpp b/cpp/src/qpid/cluster/StoreStatus.cpp index a612ee8821..d38f051cc8 100644 --- a/cpp/src/qpid/cluster/StoreStatus.cpp +++ b/cpp/src/qpid/cluster/StoreStatus.cpp @@ -79,6 +79,7 @@ framing::SequenceNumber loadSeqNum(const fs::path& path) { void StoreStatus::load() { + if (dataDir.empty()) return; fs::path dir = fs::path(dataDir, fs::native)/SUBDIR; try { create_directory(dir); @@ -95,6 +96,7 @@ void StoreStatus::load() { } void StoreStatus::save() { + if (dataDir.empty()) return; fs::path dir = fs::path(dataDir, fs::native)/SUBDIR; try { create_directory(dir); |
