Example CableMap Update Session

From Daya Bay

Jump to: navigation, search

Here is an update session based on EH2's changes committed to r14704. They include all of EH2/AD1, EH2/AD2 and AD1's ref sig.

(master)bvdb@daya0001:cmt> ../share/update.sh cablemap-changes-eh2.txt > update-eh2.log 2>&1 &
(master)bvdb@daya0001:cmt> less update-eh2.log 
# examine the log file for anything wonky
(master)bvdb@daya0001:cmt> tail -11 update-eh2.log 
# note end message.  If it doesn't say there is a change, don't commit
There was a change.  To commit it:
cd /tmp/update-cablemap.KXb14401/tmp_offline_db
svn status
svn diff LOCALSEQNO/LOCALSEQNO.csv
svn diff CableMap/CableMapVld.csv
svn diff CableMap/CableMap.csv | less
replace with actual changed tables.  If all okay then:
svn commit -F ../commit.msg
/data0/bv/offline/NuWa-trunk/dybgaudi/Database/TableTests/TestCableMap/cmt
Not removing temporary directory: /tmp/update-cablemap.KXb14401
remove when done

(master)bvdb@daya0001:cmt> cd /tmp/update-cablemap.Uji11451/tmp_offline_db
bvdb@daya0001:tmp_offline_db> svn diff LOCALSEQNO/LOCALSEQNO.csv
Index: LOCALSEQNO/LOCALSEQNO.csv
===================================================================
--- LOCALSEQNO/LOCALSEQNO.csv	(revision 5084)
+++ LOCALSEQNO/LOCALSEQNO.csv	(working copy)
@@ -1,6 +1,6 @@
 TABLENAME char(64),LASTUSEDSEQNO int(11),PRIMARY KEY (TABLENAME)
 "*",0
-"CableMap",475
+"CableMap",477
 "CalibFeeSpec",113
 "CalibPmtHighGain",395
 "CalibPmtPedBias",1
bvdb@daya0001:tmp_offline_db> svn diff CableMap/CableMapVld.csv
Index: CableMap/CableMapVld.csv
===================================================================
--- CableMap/CableMapVld.csv	(revision 5084)
+++ CableMap/CableMapVld.csv	(working copy)
@@ -474,3 +474,5 @@
 473,"2011-06-01 00:00:00","2038-01-19 03:14:07",4,1,1,0,-1,"2010-12-07 19:15:20","2011-08-09 06:35:22"
 474,"2011-06-01 00:00:00","2038-01-19 03:14:07",1,1,1,0,-1,"2010-12-07 19:15:20","2011-08-09 06:35:22"
 475,"2011-06-22 03:02:52","2038-01-19 03:14:07",1,1,1,0,-1,"2010-12-07 19:16:20","2011-09-01 02:22:58"
+476,"2011-10-13 08:36:00","2038-01-19 03:14:07",2,1,2,0,-1,"2010-12-07 19:16:20","2011-10-18 18:06:54"
+477,"2011-10-13 08:36:00","2038-01-19 03:14:07",2,1,1,0,-1,"2010-12-07 19:16:20","2011-10-18 18:06:54"
bvdb@daya0001:tmp_offline_db> cat ../commit.msg 
Commit based on dybsvn:source:dybgaudi/trunk/Database/TableTests/TestCableMap/share/cablemap-changes-eh2.txt@14705
2 contexts written for run 15037
bvdb@daya0001:tmp_offline_db> svn commit -F ../commit.msg
Sending        CableMap/CableMap.csv
Sending        CableMap/CableMapVld.csv
Sending        LOCALSEQNO/LOCALSEQNO.csv
Transmitting file data ...
Committed revision 5085.
bvdb@daya0001:tmp_offline_db> cd -
/data0/bv/offline/NuWa-trunk/dybgaudi/Database/TableTests/TestCableMap/cmt
# optional remove temp directory(ies)
(master)bvdb@daya0001:cmt> rm -rf /tmp/update-cablemap.*

Now report the commit (r5085 in this case) to the DB masters.

Personal tools