captive_shared_cache_map_flush(): Fixed the returned flushed bytes count.
authorshort <>
Thu, 6 Nov 2003 00:32:10 +0000 (00:32 +0000)
committershort <>
Thu, 6 Nov 2003 00:32:10 +0000 (00:32 +0000)
src/libcaptive/cc/sharedcachemap.c

index 9ee7cd4..db4e1dc 100644 (file)
@@ -784,6 +784,8 @@ CaptiveSharedCacheMapObject_page *page;
 
        for (lsn_page=lsn_pages_pointer;lsn_page<lsn_pages_pointer+lsn_pages_count;lsn_page++) {
                captive_shared_cache_map_page_write(lsn_page->captive_shared_cache_map_object,lsn_page->offset);
+               if (lsn_page->captive_shared_cache_map_object==captive_shared_cache_map_object
+                               && lsn_page->offset>=start && lsn_page->offset<end)
                flushed+=PAGE_SIZE;
                }