Bug #3554
closedReplication should write to disk
0%
Description
Replication should do as the standard read and insert.
From Jing:
Hi, Mike:
I think we decided metacat would read xml documents from file system in SB meeting and believe it does now in MetacatServlet class. However, I just went through the code to handle read action in MetacatReplication class(handleGetDocumentRequest method), it seems metacat still reads the xml documents from DB. It is reasonable to me that this read action will read xml documents from file system too.
Line 1137 in MetacatReplication starts to handle getting documents.
What do you think about this issue?
Updated by Michael Daigle about 16 years ago
Moved the code for reading and writing documents to disk into DocumentImpl getXML() and write() methods respectively. In this way, any part of the code that reads or writes a doc will automatically do the disk part as well.