summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osd/osd_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h
index b6f5335a0f5..19d82a7c259 100644
--- a/src/osd/osd_types.h
+++ b/src/osd/osd_types.h
@@ -1153,7 +1153,7 @@ public:
template<typename T>
void set(key_t key, const T &val) {
value_t value = val;
- opts[key] = value;
+ opts.insert_or_assign(key, value);
}
template<typename T>