Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: pkg/analysis_server/lib/src/index/b_plus_tree.dart

Issue 331603002: Fix caching paging during read. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/index/page_node_manager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/index/b_plus_tree.dart
diff --git a/pkg/analysis_server/lib/src/index/b_plus_tree.dart b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
index 441c5a1a056ed33ef7b182319d7d65c1260cf739..a37edbaba785a07ea2a4b00207ec8a1afad488f1 100644
--- a/pkg/analysis_server/lib/src/index/b_plus_tree.dart
+++ b/pkg/analysis_server/lib/src/index/b_plus_tree.dart
@@ -670,7 +670,7 @@ class _LeafNode<K, V, N> extends _Node<K, V, N> {
}
void _insertNotFull(K key, V value, int index) {
- if (index < keys.length && keys[index] == key) {
+ if (index < keys.length && comparator(keys[index], key) == 0) {
values[index] = value;
} else {
keys.insert(index, key);
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/index/page_node_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698