@@ -1418,6 +1418,7 @@ sge_follow_order(lListElem *ep, char *ruser, char *rhost, lList **topp, monitori
1418
1418
DPRINTF (" ORDER: ORT_share_tree failed\n " );
1419
1419
DRETURN (-1 );
1420
1420
}
1421
+
1421
1422
// no need to spool but other data stores need to be updated
1422
1423
sge_add_event (now, sgeE_NEW_SHARETREE, 0 , 0 , nullptr , nullptr ,
1423
1424
nullptr , lFirstRW (master_stree_list), gdi_session);
@@ -1433,12 +1434,17 @@ sge_follow_order(lListElem *ep, char *ruser, char *rhost, lList **topp, monitori
1433
1434
if (sconf_is ()) {
1434
1435
if (const lListElem *joker = lFirst (lGetList (ep, OR_joker)); joker != nullptr ) {
1435
1436
if (int pos = lGetPosViaElem (joker, SC_weight_tickets_override, SGE_NO_ABORT); pos > -1 ) {
1436
- sconf_set_weight_tickets_override (lGetPosUlong (joker, pos));
1437
+ u_long32 old_wto = sconf_get_weight_tickets_override ();
1438
+ u_long32 new_wto = lGetPosUlong (joker, pos);
1439
+
1440
+ if (old_wto != new_wto) {
1441
+ sconf_set_weight_tickets_override (new_wto);
1437
1442
1438
- // no need to spool but other data stores need to be updated
1439
- lListElem *sconfig = lFirstRW (*ocs::DataStore::get_master_list (SGE_TYPE_SCHEDD_CONF));
1440
- sge_add_event (now, sgeE_SCHED_CONF, 0 , 0 ,
1441
- " schedd_conf" , nullptr , nullptr , sconfig, gdi_session);
1443
+ // no need to spool but other data stores need to be updated
1444
+ lListElem *sconfig = lFirstRW (*ocs::DataStore::get_master_list (SGE_TYPE_SCHEDD_CONF));
1445
+ sge_add_event (now, sgeE_SCHED_CONF, 0 , 0 ,
1446
+ " schedd_conf" , nullptr , nullptr , sconfig, gdi_session);
1447
+ }
1442
1448
}
1443
1449
}
1444
1450
}
0 commit comments