summaryrefslogtreecommitdiff
path: root/src/cstore
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-26 17:07:28 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-26 17:07:28 -0700
commitaaee996343034a3ab286ec1c2807e5548f2039f4 (patch)
tree2d7b1129551c97afb33d7bd203ef0dabaf4378d0 /src/cstore
parentce05f4b0afc37658baa87f972908dea2876b2b9e (diff)
downloadvyatta-cfg-aaee996343034a3ab286ec1c2807e5548f2039f4.tar.gz
vyatta-cfg-aaee996343034a3ab286ec1c2807e5548f2039f4.zip
mark the root as "changed" after "comment" operation.
Diffstat (limited to 'src/cstore')
-rw-r--r--src/cstore/cstore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index 30a6d6a..8afa3ee 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -970,6 +970,10 @@ Cstore::commentCfgPath(const vector<string>& args, const vtw_def& def)
}
}
RESTORE_PATHS;
+ if (ret) {
+ // mark the root as changed for "comment"
+ ret = mark_changed_with_ancestors();
+ }
return ret;
}