Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folderapitest rename logging #13491

Merged
merged 3 commits into from
Jan 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ public void renameFolder() throws Exception {

// make sure the rename is properly propagated on children (that's done in a db trigger)
Logger.info(this, "ftest.getInode:" + ftest.getInode());
Logger.info(this, "identifier from cache: " + CacheLocator.getIdentifierCache().getIdentifier( ftest.getInode()));
Logger.info(this, "identifier from cache: " + identifierAPI.loadFromCache( ftest.getInode()));
Logger.info(this, "identifier from db: " + identifierAPI.loadFromDb( ftest.getInode()));
Logger.info(this, "identifier from db's asset name: " + identifierAPI.loadFromDb( ftest.getInode()).getAssetName());

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change!

final Identifier ident = identifierAPI.find(ftest);
final Identifier ident1 = identifierAPI.find(ftest1);
final Identifier ident2 = identifierAPI.find(ftest2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public abstract class IdentifierCache implements Cachable {

abstract protected void addIdentifierToCache(String identifier, String inode) ;

abstract public Identifier getIdentifier(String identId);
abstract protected Identifier getIdentifier(String identId);

abstract protected Identifier getIdentifier(Host host, String URI);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected Identifier getIdentifier( String hostId, String URI ) {
}


public Identifier getIdentifier(String identId) {
protected Identifier getIdentifier(String identId) {

Identifier value = null;
try {
Expand Down