Revision 6014
Added by ben leinfelder about 13 years ago
ReplicationHandler.java | ||
---|---|---|
396 | 396 |
null, /* the dtd text */ |
397 | 397 |
actions, |
398 | 398 |
accNumber, |
399 |
docinfoHash.get("user_owner"), |
|
399 |
docinfoHash.get("user_updated"), |
|
400 |
//docinfoHash.get("user_owner"), |
|
400 | 401 |
null, /* null for groups[] */ |
401 | 402 |
docHomeServer, |
402 | 403 |
remoteserver, tableName, true,// true is for time replication |
... | ... | |
555 | 556 |
docinfoParser.parse(new InputSource(new StringReader(docInfoStr))); |
556 | 557 |
Hashtable<String, String> docinfoHash = dih.getDocInfo(); |
557 | 558 |
// Get docid owner |
558 |
String user = docinfoHash.get("user_owner"); |
|
559 |
//String user = docinfoHash.get("user_owner"); |
|
560 |
String user = docinfoHash.get("user_updated"); |
|
559 | 561 |
// Get docid name (such as acl or dataset) |
560 | 562 |
String docName = docinfoHash.get("docname"); |
561 | 563 |
// Get doc type (eml public id) |
Also available in: Unified diff
use 'user_updated' field when writing the replicated document - allows most recent ownership/permissions to be used (in case LDAP groups have shifted) and is more accurate for both updates and initial inserts (hopefully addresses the replication issue we are having with pisco)