You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/05/22 15:12:43 UTC
[15/50] [abbrv] ignite git commit: ignite-gg-12163 Fixed duplicates
in FullPageIdTable.
ignite-gg-12163 Fixed duplicates in FullPageIdTable.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/99acdb56
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/99acdb56
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/99acdb56
Branch: refs/heads/ignite-5075-pds
Commit: 99acdb5605192d473fd5f0711090887054892020
Parents: c6319cb
Author: Dmitriy Govorukhin <dm...@gmail.com>
Authored: Tue May 16 18:09:06 2017 +0300
Committer: Dmitriy Govorukhin <dm...@gmail.com>
Committed: Tue May 16 18:09:06 2017 +0300
----------------------------------------------------------------------
.../processors/cache/database/pagemem/FullPageIdTable.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/99acdb56/modules/pds/src/main/java/org/apache/ignite/internal/processors/cache/database/pagemem/FullPageIdTable.java
----------------------------------------------------------------------
diff --git a/modules/pds/src/main/java/org/apache/ignite/internal/processors/cache/database/pagemem/FullPageIdTable.java b/modules/pds/src/main/java/org/apache/ignite/internal/processors/cache/database/pagemem/FullPageIdTable.java
index 2690fff..01d7bce 100644
--- a/modules/pds/src/main/java/org/apache/ignite/internal/processors/cache/database/pagemem/FullPageIdTable.java
+++ b/modules/pds/src/main/java/org/apache/ignite/internal/processors/cache/database/pagemem/FullPageIdTable.java
@@ -261,7 +261,12 @@ public class FullPageIdTable {
do {
res = testKeyAt(index, cacheId, pageId, tag);
- if (res == EMPTY || res == OUTDATED) {
+ if (res == OUTDATED) {
+ foundIndex = index;
+
+ break;
+ }
+ else if (res == EMPTY) {
if (foundIndex == -1)
foundIndex = index;