diff options
Diffstat (limited to 'phosphor-ldap-mapper/ldap_mapper_serialize.cpp')
-rw-r--r-- | phosphor-ldap-mapper/ldap_mapper_serialize.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phosphor-ldap-mapper/ldap_mapper_serialize.cpp b/phosphor-ldap-mapper/ldap_mapper_serialize.cpp index 534e0a1..3ef809e 100644 --- a/phosphor-ldap-mapper/ldap_mapper_serialize.cpp +++ b/phosphor-ldap-mapper/ldap_mapper_serialize.cpp @@ -54,9 +54,8 @@ void load(Archive& archive, LDAPMapperEntry& entry, const std::uint32_t version) privilege(privilege, true); } -fs::path serialize(const LDAPMapperEntry& entry, Id id) +fs::path serialize(const LDAPMapperEntry& entry, Id id, const fs::path& dir) { - fs::path dir(LDAP_MAPPER_PERSIST_PATH); auto path = dir / std::to_string(id); std::ofstream os(path.c_str(), std::ios::binary); cereal::BinaryOutputArchive oarchive(os); |