if ( dataset instanceof DatasetGraphTransaction ) {
DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
// This only sync if the dataset has not been used transactionally.
// Can't sync transactional datasets (it's meaningless)
dsgt.syncIfNotTransactional() ;
return ;
}
// May be a general purpose dataset with TDB objects in it.
sync(dataset.getDefaultGraph()) ;