Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
convert _ to / in table prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ningtwitter committed Aug 6, 2010
1 parent 4d7e440 commit 85b0c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/com/twitter/flockdb/jobs/Copy.scala
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class MetadataCopy(sourceShardId: ShardId, destinationShardId: ShardId, cursor:
}
super.apply(environment)
}
g

def copyPage(sourceShard: Shard, destinationShard: Shard, count: Int) = {
if (destinationShard.needsMetadataCopyRestart()) {
// If a flapp goes down mid copy, we get a copyPage call without corresponding startMetadataCopy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HdfsBackupShard(val shardInfo: ShardInfo, val weight: Int, val children: S

val log = Logger.get(getClass.getName)

private val path = shardInfo.hostname + "/" + shardInfo.tablePrefix
private val path = shardInfo.hostname + "/" + shardInfo.tablePrefix.replace("_", "/")
private val fs = FileSystem.get(URI.create(path), new Configuration)
private val edgeThriftWritable = new ThriftB64LineWritable(new TypeRef[thrift.Edge] {})
private val metadataThriftWritable = new ThriftB64LineWritable(new TypeRef[thrift.Metadata] {})
Expand Down

0 comments on commit 85b0c29

Please sign in to comment.