PR feedback and a manual test
This commit is contained in:
1 parent
e8b5d4f8fd
commit
af365177d0
5 files changed
+97
-66
No files matched your search
@@ -246,8 +246,8 @@ public:
|
||||
pupd->mutable_security()->CopyFrom(handle.get_normalized_security());
|
||||
snapshot = true;
|
||||
}
|
||||
if (!entitled) {
|
||||
if(chan.entitled()) snapshot = true;
|
||||
//if we are not entitled AND this is the first request since we lost our entitlement, zero out books
|
||||
if (!entitled && chan.entitled() ) {
|
||||
if (HASFLAG(flags, MDRequest::BBO) || HASFLAG(flags, MDRequest::DIRECT)) {
|
||||
auto* p = pupd->mutable_direct();
|
||||
for (size_t x = 0; x < COCONUT_MAX_DEPTH; ++x) {
|
||||
@@ -263,7 +263,7 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(entitled) {
|
||||
// If we are entitled now but this is the first request where we are ensure we send all values
|
||||
if(!chan.entitled()) snapshot = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user