Feature/agency cache database subscription #12594
Conversation
…ture/agency-cache-database-subscription
…ture/agency-cache-database-subscription
…ture/agency-cache-database-subscription
…ture/agency-cache-database-subscription
…ture/agency-cache-database-subscription
Some comments. I basically looked at AgencyCache and a few smaller files which seemed ready. |
#include "GeneralServer/RestHandler.h" | ||
#include "Scheduler/Scheduler.h" | ||
#include "Scheduler/SchedulerFeature.h" | ||
|
||
using namespace arangodb; | ||
using namespace arangodb::consensus; | ||
|
||
namespace std { |
neunhoef
Sep 2, 2020
Contributor
Should be unnecessary by std::shared_lock
Should be unnecessary by std::shared_lock
// Fill existing Builder from readDB, mainly /Plan /Current | ||
index_t AgencyCache::get(VPackBuilder& result, std::string const& path) const { | ||
result.clear(); | ||
std::lock_guard g(_storeLock); | ||
std::shared_lock_guard g(_storeLock); |
neunhoef
Sep 2, 2020
Contributor
Just use std::shared_lock
Just use std::shared_lock
…ture/agency-cache-database-subscription
…ture/agency-cache-database-subscription
…github.com/arangodb/arangodb into feature/agency-cache-database-subscription
…-database-subscription
LGTM. After the latest changes. However, need to address the TODOs in |
…ture/agency-cache-database-subscription
Scope & Purpose
(Please describe the changes in this PR for reviewers)
Backports:
Related Information
(Please reference tickets / specification etc)
Testing & Verification
(Please pick either of the following options)
Additionally:
(Include link to Jenkins run etc)
Documentation
External contributors / CLA Note
Please note that for legal reasons we require you to sign the Contributor Agreement
before we can accept your pull requests.