fix bug which showed up on continuous build when lbdb is turned off
authorHarshitha <gplkrsh2@illinois.edu>
Fri, 26 Oct 2012 21:17:05 +0000 (16:17 -0500)
committerHarshitha <gplkrsh2@illinois.edu>
Fri, 26 Oct 2012 21:17:05 +0000 (16:17 -0500)
src/ck-ldb/LBDatabase.C
src/ck-ldb/LBDatabase.h
src/ck-ldb/LBOM.h

index e9027dc18fd384daa5d0fac7a8a91e3bc7fe85f2..55a868d173bc72eeb51e2b4059a99f9ccb19395f 100644 (file)
@@ -501,8 +501,8 @@ void LBDatabase::ResumeClients() {
                        metabalancer->ResumeClients();
                }
        }
-#endif
   LDResumeClients(myLDHandle);
+#endif
 }
 
 void LBDatabase::SetMigrationCost(double cost) {
index 030c3512efbc8dbabcf241ca024a2a41841527bd..b723498ecd8e47825ab751982634dff6a93b9339 100644 (file)
@@ -358,11 +358,15 @@ public:
   inline double GetLBPeriod() { return LDGetLBPeriod(myLDHandle);}
 
   inline void MetaLBResumeWaitingChares(int lb_period) {
+#if CMK_LBDB_ON
     LDOMMetaLBResumeWaitingChares(myLDHandle, lb_period);
+#endif
   }
 
   inline void MetaLBCallLBOnChares() {
+#if CMK_LBDB_ON
     LDOMMetaLBCallLBOnChares(myLDHandle);
+#endif
   }
 
   void SetMigrationCost(double cost);
index e1d4e49029de96f27c5985e00ccbbd93de6fe3ba..62af5fe83edebbab31e6e6547bf4d6f2bb4b6f7a 100644 (file)
@@ -35,12 +35,14 @@ private:
 
   void DepositHandle(LDOMHandle _h) { myhandle = _h; };
   void Migrate(LDObjHandle _h, int dest) { callbacks.migrate(_h,dest); };
+#if CMK_LBDB_ON
   void MetaLBResumeWaitingChares(LDObjHandle _h, int lb_ideal_period) {
     callbacks.metaLBResumeWaitingChares(_h, lb_ideal_period);
   }
   void MetaLBCallLBOnChares(LDObjHandle _h) {
     callbacks.metaLBCallLBOnChares(_h);
   }
+#endif
   CmiBool RegisteringObjs() { return registering_objs; };
   void SetRegisteringObjs(CmiBool _set) { registering_objs = _set; };