Skip to content

Commit

Permalink
Merge pull request kaltura#348 from kaltura/IX-9.4.0-dc-aware-entry-i…
Browse files Browse the repository at this point in the history
…ncrement

increment entry versions in a dc aware fashion
  • Loading branch information
erankor committed Oct 20, 2013
2 parents 82f2444 + a9ef2b5 commit 591c621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpha/apps/kaltura/lib/myContentStorage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static function generateRandomFileName($fileName, $previousFileName = NUL
}

if (strlen($parts[0])) // a previous UGC found, increment version
$version = pathinfo($parts[0], PATHINFO_BASENAME) + 1;
$version = kDataCenterMgr::incrementVersion(pathinfo($parts[0], PATHINFO_BASENAME));
else
$version = rand(myContentStorage::MIN_OBFUSCATOR_VALUE, myContentStorage::MAX_OBFUSCATOR_VALUE);

Expand Down

0 comments on commit 591c621

Please sign in to comment.