commit | b826e9430bd1e2f93e3f66657de2b2c15cbebccf | [log] [tgz] |
---|---|---|
author | vinayakb <vinayakb@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 15 21:58:07 2012 +0000 |
committer | vinayakb <vinayakb@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 15 21:58:07 2012 +0000 |
tree | b13a9edc4797c0dae731926e7aa8ab6ec8ac7cf1 | |
parent | 675f66e2a5d8f45df3f17f931c2dd431744b8633 [diff] | |
parent | 0ec04ef116c4bf35e6c84c552c259c15aaa7f96b [diff] |
Merged asterix_stabilization_hyracks_scheduling -r 509:510 git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@511 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java index 36e8a4c..af20c8b 100644 --- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java +++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java
@@ -20,8 +20,10 @@ import edu.uci.ics.hyracks.storage.common.file.IFileMapProvider; public class AsterixAppRuntimeContext { + private static final int DEFAULT_BUFFER_CACHE_PAGE_SIZE = 32768; + private final INCApplicationContext ncApplicationContext; - + private IndexRegistry<IIndex> indexRegistry; private IFileMapManager fileMapManager; private IBufferCache bufferCache; @@ -52,7 +54,7 @@ } private int getBufferCachePageSize() { - int pageSize = ncApplicationContext.getRootContext().getFrameSize(); + int pageSize = DEFAULT_BUFFER_CACHE_PAGE_SIZE; String pageSizeStr = System.getProperty(GlobalConfig.BUFFER_CACHE_PAGE_SIZE_PROPERTY, null); if (pageSizeStr != null) { try {