Permalink
Browse files

fixed bug looking attr_reason instead att_reason

  • Loading branch information...
mschoch committed Jan 22, 2013
1 parent 71fc138 commit 5bd69ae94f525a6efe1815af7dfdf5b748c5890f
@@ -175,16 +175,16 @@ public boolean ensureFullCommit(String database) {
// if there is no meta-data section, there is nothing we can do
logger.warn("Document without meta in bulk_docs, ignoring....");
continue;
- } else if("non-JSON mode".equals(meta.get("attr_reason"))) {
+ } else if("non-JSON mode".equals(meta.get("att_reason"))) {
// optimization, this tells us the body isn't json
json = new HashMap<String, Object>();
} else if(json == null && base64 != null) {
// no plain json, let's try parsing the base64 data
try {
byte[] decodedData = Base64.decode(base64);
try {
- // now try to parse the decoded data as json
- json = (Map<String, Object>) mapper.readValue(decodedData, Map.class);
+ // now try to parse the decoded data as json
+ json = (Map<String, Object>) mapper.readValue(decodedData, Map.class);
}
catch(IOException e) {
logger.error("Unable to parse decoded base64 data as JSON, indexing stub for id: {}", meta.get("id"));

0 comments on commit 5bd69ae

Please sign in to comment.