You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The following script (or variant thereof) can be used in // /sys.scripts.do or in a server-side script to determine// the current shard for a table. printCurrentShard('sysevent');functionprintCurrentShard(pTableName){vargr=newGlideRecord('sys_table_rotation');if(pTableName){gr.addQuery('name','=',pTableName);}gr.query();while(gr.next()){try{vartre=Packages.com.snc.db.replicate.TableRotationExtensions.get();varextension=tre.getExtension(gr.name);vartablename=extension.getTableName();}catch(e){gs.print('Error getting current shard for table '+gr.name);}finally{gs.print('The current shard of table '+gr.name+' is '+tablename);}}}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: