Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semaphore for subCache when mutex policy is none #1401

Closed
kzangeli opened this issue Oct 22, 2015 · 1 comment
Closed

Semaphore for subCache when mutex policy is none #1401

kzangeli opened this issue Oct 22, 2015 · 1 comment

Comments

@kzangeli
Copy link
Member

Right now, the subscription cache uses the mongo request semaphore, but this has an important limitation - the broker cannot be started with -mutexPolicy != all, unless also -noCache is present.

To fix this, the subscription cache needs a semahpore of its own, in case the mongo request semaphore is not in use.

And, this must be removed from contextBroker.cpp:

if ((strcmp(reqMutexPolicy, "all") != 0) && (noCache == false))
{
  LM_E(("Bad Input (reqMutexPolicy != 'all'  AND  subscription-cache CANNOT be used together in 0.24.0 (cache can be disabled using -noCache))"));
  exit(1);
}

Effort: 2 man day

@fgalan
Copy link
Member

fgalan commented Oct 28, 2015

Fixed in PR #1435

@fgalan fgalan closed this as completed Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants