You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mnemonic.apache.org by "Wang, Gang (JIRA)" <ji...@apache.org> on 2017/06/01 16:32:04 UTC

[jira] [Commented] (MNEMONIC-275) Implement a default function to sync data to the persistent storage

    [ https://issues.apache.org/jira/browse/MNEMONIC-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16033256#comment-16033256 ] 

Wang, Gang commented on MNEMONIC-275:
-------------------------------------

How about using the following interface to replace persist(), sync(), flush() ?
// There are three levels
// toMEM: flush L2 to system memory
// toPM: flush to persistent memory after toMEM 
// toMF: flush to mapped underlying storage after toMEM and toPM if exists
// throw UnsupportedOperation Exception if not supported
void flush(toMEM | toPM | toMF);


> Implement a default function to sync data to the persistent storage
> -------------------------------------------------------------------
>
>                 Key: MNEMONIC-275
>                 URL: https://issues.apache.org/jira/browse/MNEMONIC-275
>             Project: Mnemonic
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.9.0-incubating
>            Reporter: Johnu George
>            Assignee: Wang, Gang
>             Fix For: 0.9.0-incubating
>
>
> Currently persist(), sync(), flush() calls are exposed to the user. This is confusing.  Only one call should be exposed to user that provides the default functionality. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)