Comment 2 for bug 714980

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Ah, just in case this is something triggered because of the specific dmedia view functions, here's the code:

map = """
function(doc) {
    if (doc.type == 'dmedia/file' && typeof(doc.bytes) == 'number') {
        emit(doc.bytes, doc.bytes);
    }
}
"""

reduce = '_sum'