elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/storeops/map/AddShardOperation.java [97:123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return tempVar;
    }

    /**
     * Performs the initial GSM operation prior to LSM operations.
     *
     * @param ts
     *            Transaction scope.
     * @return Pending operations on the target objects if any.
     */
    @Override
    public StoreResults doGlobalPreLocalExecute(IStoreTransactionScope ts) {
        return ts.executeOperation(StoreOperationRequestBuilder.SP_BULK_OPERATION_SHARDS_GLOBAL_BEGIN,
                StoreOperationRequestBuilder.addShardGlobal(this.getId(), this.getOperationCode(), false, shardMap, shard)); // undo
    }

    /**
     * Handles errors from the initial GSM operation prior to LSM operations.
     *
     * @param result
     *            Operation result.
     */
    @Override
    public void handleDoGlobalPreLocalExecuteError(StoreResults result) {
        if (result.getResult() == StoreResult.ShardMapDoesNotExist) {
            // Remove shard map from cache.
            this.getShardMapManager().getCache().deleteShardMap(shardMap);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic-db-tools/src/main/java/com/microsoft/azure/elasticdb/shard/storeops/recovery/AttachShardOperation.java [100:126]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return tempVar;
    }

    /**
     * Performs the initial GSM operation prior to LSM operations.
     *
     * @param ts
     *            Transaction scope.
     * @return Pending operations on the target objects if any.
     */
    @Override
    public StoreResults doGlobalPreLocalExecute(IStoreTransactionScope ts) {
        return ts.executeOperation(StoreOperationRequestBuilder.SP_BULK_OPERATION_SHARDS_GLOBAL_BEGIN,
                StoreOperationRequestBuilder.addShardGlobal(this.getId(), this.getOperationCode(), false, shardMap, shard)); // undo
    }

    /**
     * Handles errors from the initial GSM operation prior to LSM operations.
     *
     * @param result
     *            Operation result.
     */
    @Override
    public void handleDoGlobalPreLocalExecuteError(StoreResults result) {
        if (result.getResult() == StoreResult.ShardMapDoesNotExist) {
            // Remove shard map from cache.
            this.getShardMapManager().getCache().deleteShardMap(shardMap);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



