Skip to content

Commit

Permalink
[Linux] Add an ability to configure KVS path (#8204)
Browse files Browse the repository at this point in the history
* Defined default KVS path
  • Loading branch information
AntonGrey authored and pull[bot] committed Sep 10, 2021
1 parent 54240f2 commit 1638648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void InitServer(AppDelegate * delegate)
err = PersistedStorage::KeyValueStoreMgrImpl().Init("chip.store");
SuccessOrExit(err);
#elif CHIP_DEVICE_LAYER_TARGET_LINUX
PersistedStorage::KeyValueStoreMgrImpl().Init("/tmp/chip_server_kvs");
PersistedStorage::KeyValueStoreMgrImpl().Init(CHIP_CONFIG_KVS_PATH);
#endif

err = gRendezvousServer.Init(delegate, &gServerStorage, &gSessionIDAllocator);
Expand Down
4 changes: 4 additions & 0 deletions src/platform/Linux/CHIPPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,7 @@ using CHIP_CONFIG_PERSISTED_STORAGE_KEY_TYPE = const char *;
#ifndef CHIP_CONFIG_ENABLE_CASE_RESPONDER
#define CHIP_CONFIG_ENABLE_CASE_RESPONDER 1
#endif // CHIP_CONFIG_ENABLE_CASE_RESPONDER

#ifndef CHIP_CONFIG_KVS_PATH
#define CHIP_CONFIG_KVS_PATH "/tmp/chip_kvs"
#endif // CHIP_CONFIG_KVS_PATH

0 comments on commit 1638648

Please sign in to comment.