Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS update of sequoia/src/org/continuent/sequoia/controller (3 files): msg#00109

db.sequoia.cvs

Subject: CVS update of sequoia/src/org/continuent/sequoia/controller (3 files)

Date: Friday, September 22, 2006 @ 15:16:47
Author: emmanuel
Path: /cvsroot/sequoia/sequoia/src/org/continuent/sequoia/controller

Modified: cache/parsing/ParsingCache.java (1.8 -> 1.9)
loadbalancer/BackendTaskQueues.java (1.132 -> 1.133)
requestmanager/RequestManager.java (1.167 -> 1.168)

Set the semantic manager on the request before calling parse()
Relates to SEQUOIA-791


-------------------------------------+
cache/parsing/ParsingCache.java | 1 +
loadbalancer/BackendTaskQueues.java | 8 ++++++--
requestmanager/RequestManager.java | 11 +++++++----
3 files changed, 14 insertions(+), 6 deletions(-)


Index:
sequoia/src/org/continuent/sequoia/controller/cache/parsing/ParsingCache.java
diff -u
sequoia/src/org/continuent/sequoia/controller/cache/parsing/ParsingCache.java:1.8

sequoia/src/org/continuent/sequoia/controller/cache/parsing/ParsingCache.java:1.9
---
sequoia/src/org/continuent/sequoia/controller/cache/parsing/ParsingCache.java:1.8
Thu Sep 21 16:17:17 2006
+++
sequoia/src/org/continuent/sequoia/controller/cache/parsing/ParsingCache.java
Fri Sep 22 15:16:47 2006
@@ -203,6 +203,7 @@

// Check if there is a semantic information for this request
SemanticBehavior semantic = semanticManager.getRequestSemantic(request);
+ request.setSemanticManager(semanticManager);
if (semantic != null)
{
request.setSemantic(semantic);
Index:
sequoia/src/org/continuent/sequoia/controller/loadbalancer/BackendTaskQueues.java
diff -u
sequoia/src/org/continuent/sequoia/controller/loadbalancer/BackendTaskQueues.java:1.132

sequoia/src/org/continuent/sequoia/controller/loadbalancer/BackendTaskQueues.java:1.133
---
sequoia/src/org/continuent/sequoia/controller/loadbalancer/BackendTaskQueues.java:1.132
Thu Sep 21 16:20:52 2006
+++
sequoia/src/org/continuent/sequoia/controller/loadbalancer/BackendTaskQueues.java
Fri Sep 22 15:16:47 2006
@@ -50,6 +50,7 @@
import org.continuent.sequoia.controller.requests.SelectRequest;
import org.continuent.sequoia.controller.requests.StoredProcedure;
import org.continuent.sequoia.controller.semantic.SemanticBehavior;
+import org.continuent.sequoia.controller.semantic.SemanticManager;
import org.continuent.sequoia.controller.virtualdatabase.VirtualDatabase;

/**
@@ -821,9 +822,12 @@
{
if (!request.isParsed())
{
+ SemanticManager semanticManager = requestManager
+ .getVirtualDatabase().getSemanticManager();
// Check if there is semantic information
- SemanticBehavior semantic = requestManager.getVirtualDatabase()
- .getSemanticManager().getRequestSemantic(request);
+ SemanticBehavior semantic = semanticManager
+ .getRequestSemantic(request);
+ request.setSemanticManager(semanticManager);
if (semantic != null)
request.setSemantic(semantic);
else
Index:
sequoia/src/org/continuent/sequoia/controller/requestmanager/RequestManager.java
diff -u
sequoia/src/org/continuent/sequoia/controller/requestmanager/RequestManager.java:1.167

sequoia/src/org/continuent/sequoia/controller/requestmanager/RequestManager.java:1.168
---
sequoia/src/org/continuent/sequoia/controller/requestmanager/RequestManager.java:1.167
Thu Sep 21 16:20:52 2006
+++
sequoia/src/org/continuent/sequoia/controller/requestmanager/RequestManager.java
Fri Sep 22 15:16:47 2006
@@ -87,6 +87,7 @@
import org.continuent.sequoia.controller.requests.UpdateRequest;
import org.continuent.sequoia.controller.scheduler.AbstractScheduler;
import org.continuent.sequoia.controller.semantic.SemanticBehavior;
+import org.continuent.sequoia.controller.semantic.SemanticManager;
import org.continuent.sequoia.controller.virtualdatabase.VirtualDatabase;
import
org.continuent.sequoia.controller.virtualdatabase.VirtualDatabaseWorkerThread;
import
org.continuent.sequoia.controller.virtualdatabase.protocol.DistributedCommit;
@@ -357,9 +358,10 @@
{
if (parsingCache == null)
{
+ SemanticManager semanticManager = vdb.getSemanticManager();
// Check if there is semantic information
- SemanticBehavior semantic = vdb.getSemanticManager()
- .getRequestSemantic(request);
+ SemanticBehavior semantic =
semanticManager.getRequestSemantic(request);
+ request.setSemanticManager(semanticManager);
if (semantic != null)
request.setSemantic(semantic);
else
@@ -3501,8 +3503,9 @@
try
{
// Check if there is semantic information
- SemanticBehavior semantic = vdb.getSemanticManager().getRequestSemantic(
- request);
+ SemanticManager semanticManager = vdb.getSemanticManager();
+ SemanticBehavior semantic = semanticManager.getRequestSemantic(request);
+ request.setSemanticManager(semanticManager);
if (semantic != null)
request.setSemantic(semantic);
else


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
drivers.mtd/200...    security.firewa...    java.openamf.cv...    rpm.yum/2003-08...    telephony.sipp....    file-systems.oc...    qnx.openqnx.dev...    voip.linphone.u...    hardware.sony/2...    network.simulat...    boot-loaders.gr...    ietf.usenet.for...    culture.languag...    emacs.latex.pre...    music.jamiroqua...    xfree86.neomagi...    user-groups.lin...    ltp/2006-08/msg...    kde.kst/2005-08...    programming.too...    os.freebsd.deve...    window-managers...    audio.cd-record...    gnu.fiasco.bugs...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation